/**
 * FlightStatusMap.java
 * 2010-1-31
 */
package com.dlplay.flightinfo.data;

import java.util.HashMap;
import java.util.Map;

/**
 * @author zhao yu
 *
 */
public class FlightStatusMap {
	private static Map<String, RTFlightStatus> strMap = new HashMap<String, RTFlightStatus>();
	private static Map<RTFlightStatus, String> codeMap = new HashMap<RTFlightStatus, String>();
	private static boolean init = false;
	private static void init()
	{
		if(!init)
		{
			strMap.put("到达", RTFlightStatus.ARRIVAL);
			strMap.put("取消", RTFlightStatus.ARRIVAL);
			init=true;
		}
	}	
	
	public static RTFlightStatus getStatus(String temp) {
		init();
		if(strMap.containsKey(temp))
			return strMap.get(temp);
		else
			return RTFlightStatus.UNKNOWN;
	}

}
